問題の説明
コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)
I am using Oracle App Bundler to sign my Java application for OSX. I use this following commands to sign my application:
codesign ‑f ‑s "MyName" dist/MyCool.app
codesign ‑vv dist/MyCool.app
"MyName" is a self‑signed certificate common name that I created with Key Chain Access. It went well, although OSX gives warning that it come from untrusted developer. Now that I have create a Mac Developer certificate from our Apple Developer subscription, how do I use it? I have already imported the downloaded mac_development.cer
into Key Chain Access, but using its common name, codesign
still complain no identity found
.
How do I properly import it into my development environment?
リファレンスソリューション
方法 1:
The codesign command should be:
codesign ‑s "Developer ID Application: Certificate Common Name" dist/MyCool.app
You also need to add the intermediate certificates from Apple (in case you haven't added those to your keychain).
- Developer ID Certification Authority
Apple Worldwide Developer Relations Certification Authority (WWDR)
- http://www.apple.com/certificateauthority/
- Download the Intermediate Certificates listed.
- Add them to your keychain
Also, take a look at the Apple Developer Codesigning Workflow Guide